<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>One day escape</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <link rel="stylesheet" href="src/css/n.min.css">
    <script>
        (function(){
            var phoneWidth =  parseInt(window.screen.width);
            var phoneScale = phoneWidth/640;
            var isAndroid = RegExp("Android").test(navigator.userAgent);
            if (isAndroid) {
                document.write('<meta name="viewport" content="width=640, minimum-scale = '+phoneScale+', maximum-scale = '+phoneScale+', target-densitydpi=device-dpi">');
            } else {
                document.write('<meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">');
            }
        }());
    </script>
</head>

<body class="app" style="width: 100%;height: 100%;">

    <div class="container brown" style="width: 640px;margin: 0 auto;">
            <section class="result-box" id="J_iScroll">
                <ul id="js-list" class="result-list"></ul>
            </section>
    </div>

    <script id="renderTemplate" type="text/x-handlebars-template">
        {{#each groupList}}
        <li>
            <a href="calendar.html?group_id={{_id}}" class="item-content">
                {{#if tags}}
                <div class="icon-tag"><span>{{tags}}}</span></div>
                {{/if}}
                {{#if users.0.img}}
                <div class="avatar-wrapper">
                    <img width="94" height="94" src="" data-src="{{users.0.img}}" alt=""/>
                </div>
                {{/if}}
                <div class="img-wrapper">
                    <div class="img-info">
                        <p class="theme"><span class="tit">{{title}}</span><span class="status">{{trip_status}}</span></p>
                        <ul class="detail-list clearfix">
                            <li>{{plan_info.destinations}}</li>
                            <li>06.07</li>
                            <li>团费￥628</li>
                        </ul>
                    </div>
                    <img width="100%" height="324" src="" data-src="{{img}}" alt=""/>
                </div>
                <div class="text-wrapper">
                    {{#if intro}}
                    <p>{{intro}}</p>
                    {{else}}
                    <p>没有介绍信息</p>
                    {{/if}}
                </div>
            </a>
        </li>
        {{/each}}
    </script>

    <script src="src/js/zepto.min.js"></script>
    <script src="src/js/handlebars.js"></script>
    <script src="src/js/n.js"></script>
    <script>
        Zepto(function($){

            CT.app.initPlacePage();

            var isWeixin = function () {
                var ua = navigator.userAgent.toLowerCase();
                if (ua.match(/MicroMessenger/i) == 'micromessenger') {
                    return true;
                } else {
                    return false;
                }
            };

            if(isWeixin()) {
                var script=document.createElement("script");
                script.src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js";
                script.onload=function(){
                    var wxScript = document.createElement("script");
                    wxScript.src = "src/js/weixin.js";
                    script.onload=function(){
                        new Weixin().init({
                            title: "一道走疯狂旅行家，赢5万元旅游基金！",
                            desc: "现在创建主题行程,赢5万元旅游基金!一道走带你体验最深度的旅游方式,疯狂玩转5大洲!",
                            link: window.location.href,
                            imgUrl: "http://www.one-dao.com/html/crazytraveler/src/img/sharepng.png",
                            type: "",
                            dataUrl: "",
                            success: function (res) {},
                            cancel: function (res) {}
                        });
                    }
                    document.head.appendChild(wxScript);
                }
                document.head.appendChild(script);
            }
        })
    </script>

</body>

</html>
